package cn.com.learningSpring.service;

import cn.com.learningSpring.dao.Userdao;

public class UserServiceImpl implements UserService {

    Userdao userdao;

    //用于通过无参构造器创建对象
    public UserServiceImpl() {
        this.userdao = userdao;
    }

    public UserServiceImpl(Userdao userdao) {
        this.userdao = userdao;
    }

    public void num() {
        System.out.println("num");
        userdao.num();
    }
}
